package softwaretest.dto;

import java.time.LocalDateTime;

public class AirTemperatureDTO {
    private LocalDateTime createdAt; // 数据创建时间
    private Double temperature; // 空气温度值

    // 构造函数
    public AirTemperatureDTO(LocalDateTime createdAt, Double temperature) {
        this.createdAt = createdAt;
        this.temperature = temperature;
    }

    // Getter 和 Setter 方法
    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public Double getTemperature() {
        return temperature;
    }

    public void setTemperature(Double temperature) {
        this.temperature = temperature;
    }

    @Override
    public String toString() {
        return "AirTemperatureDTO{" +
                "createdAt=" + createdAt +
                ", temperature=" + temperature +
                '}';
    }
}